package com.example.weather.service;

import com.example.weather.dto.WeatherResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value = "GETWEATHERDATA/weather")
public interface WeatherDataClient {

    @RequestMapping("/search")
    public WeatherResponse search(@RequestParam("cityid")String cityid);

}
